package com.sayimo.maker.mall.goods.dao;

import java.util.List;
import java.util.Map;

import com.sayimo.framework.exception.DaoException;
import com.sayimo.maker.mall.goods.vo.GoodsComment;




/**
 * @Project: schoolmallapi
 * @ClassName: GoodsCommentInterfaceDao
 * @Description: 商品评论Dao
 * @Author:	曹频辉
 * @Date:	日期：2015年12月28日  时间：下午6:03:34
 * @Version 1.0.0
 */
public interface GoodsCommentInterfaceDao {
	/**
	* @Title: getGoodsCommentListByGoodsId 
	* @Description: 查询商品评论列表
	* @param goodsId
	* @param recordNum
	 * @param goodsType 
	* @throws DaoException
	* @return List
	 */
	public List getGoodsCommentListByGoodsId(Integer goodsId,Integer recordNum) throws DaoException;
	
	
	
	
	/**
	* @Title: getGoodsCommentReplyById 
	* @Description: 根据ID查询商品追加评论
	* @param replyId
	* @param commentId
	* @throws DaoException
	* @return Map
	 */
	public Map getGoodsCommentReplyById(Integer replyId,Integer commentId) throws DaoException;
	
	
	
	
	/**
	* @Title: getGoodsCommentStatistics 
	* @Description: 商品评论统计
	* @param goodsId
	* @throws DaoException
	* @return Map
	 */
	public Map getGoodsCommentStatistics(Integer goodsId) throws DaoException;
	
	/**
	* @Title: addGoodsCommentOrReply 
	* @Description: 添加商品评论或回复
	* @param goodsComment
	* @throws DaoException
	* @return Integer
	 */
	public Integer addGoodsCommentOrReply(GoodsComment goodsComment) throws DaoException;
	
	/** 
	* @Title: getPurchaseTimesByCustomerId 
	* @Description: 获得该用户对于该商品的购买次数
	* @param customerId
	* @param goodsId
	* @return
	* @throws DaoException
	* @return Integer
	* @throws
	 */
	public Integer getPurchaseTimesByCustomerId(Integer customerId,Integer goodsId)throws DaoException;
	 /**
	 * @Package com.sayimo.school.mall.module.goods.dao
	 * @Author 龚益君
	 * @MethodName:getCommentCount
	 * @Description:获取订单商品是否可以评论
	 * @param goodsComment
	 * @return
	 * @throws DaoException
	 * @Date 2016年9月30日,下午6:03:57
	 */
	public Integer getCommentCount(Map<String,Object> map) throws DaoException;
	
	/** 
	  * @package com.sayimo.school.mall.module.goods.dao
	  * @author chenpy
	  * @Title:  
	  * @Description: 获取某订单下还没有评论的商品个数
	  * @param 
	  * @throws 
	  * @return Integer
	  * @date 2016年10月19日
	  */ 
	public Integer getNotCommentCntGoodsInOrder(GoodsComment comment) throws DaoException;
}
